﻿/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is BarocStudio.
*
* The Initial Developer of the Original Code is Kevin Ortman.
*
* Portions created by the Initial Developer are Copyright (C) 2011
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
* ***** END LICENSE BLOCK ***** */

using System.ComponentModel.Composition;
using System.Windows.Media;
using Microsoft.VisualStudio.Text.Classification;
using Microsoft.VisualStudio.Utilities;

namespace BarocLanguage.Classification
{

    [Export(typeof(EditorFormatDefinition))]
    [ClassificationType(ClassificationTypeNames = BarocConstants.ClassificationTypes.BarocText)]
    [Name(BarocConstants.ClassificationTypes.BarocText)]
    [UserVisible(false)] //this should be visible to the end user
    [Order(Before = Priority.Default)] //set the priority to be after the default classifiers
    internal sealed class BarocText : ClassificationFormatDefinition
    {
        public BarocText()
        {
            DisplayName = BarocConstants.ClassificationTypes.BarocText;
            ForegroundColor = Colors.Black;
        }
    }

    [Export(typeof(EditorFormatDefinition))]
    [ClassificationType(ClassificationTypeNames = BarocConstants.ClassificationTypes.BarocKeyword)]
    [Name(BarocConstants.ClassificationTypes.BarocKeyword)]
    [UserVisible(false)] //this should be visible to the end user
    [Order(Before = Priority.Default)] //set the priority to be after the default classifiers
    internal sealed class BarocKeyword : ClassificationFormatDefinition
    {
        public BarocKeyword()
        {
            DisplayName = BarocConstants.ClassificationTypes.BarocKeyword;
            ForegroundColor = Colors.Blue;
        }
    }

    [Export(typeof(EditorFormatDefinition))]
    [ClassificationType(ClassificationTypeNames = BarocConstants.ClassificationTypes.BarocComment)]
    [Name(BarocConstants.ClassificationTypes.BarocComment)]
    [UserVisible(false)] //this should be visible to the end user
    [Order(Before = Priority.Default)] //set the priority to be after the default classifiers
    internal sealed class BarocComment : ClassificationFormatDefinition
    {
        public BarocComment()
        {
            DisplayName = BarocConstants.ClassificationTypes.BarocComment;
            ForegroundColor = Colors.Green;
        }
    }

    [Export(typeof(EditorFormatDefinition))]
    [ClassificationType(ClassificationTypeNames = BarocConstants.ClassificationTypes.BarocIdentifier)]
    [Name(BarocConstants.ClassificationTypes.BarocIdentifier)]
    [UserVisible(false)] //this should be visible to the end user
    [Order(Before = Priority.Default)] //set the priority to be after the default classifiers
    internal sealed class BarocIdentifier : ClassificationFormatDefinition
    {
        public BarocIdentifier()
        {
            DisplayName = BarocConstants.ClassificationTypes.BarocIdentifier;
            ForegroundColor = Colors.DarkRed;
        }
    }

    [Export(typeof(EditorFormatDefinition))]
    [ClassificationType(ClassificationTypeNames = BarocConstants.ClassificationTypes.BarocString)]
    [Name(BarocConstants.ClassificationTypes.BarocString)]
    [UserVisible(false)] //this should be visible to the end user
    [Order(Before = Priority.Default)] //set the priority to be after the default classifiers
    internal sealed class BarocString : ClassificationFormatDefinition
    {
        public BarocString()
        {
            DisplayName = BarocConstants.ClassificationTypes.BarocString;
            ForegroundColor = Colors.Gray;
        }
    }

    [Export(typeof(EditorFormatDefinition))]
    [ClassificationType(ClassificationTypeNames = BarocConstants.ClassificationTypes.BarocNumber)]
    [Name(BarocConstants.ClassificationTypes.BarocNumber)]
    [UserVisible(false)] //this should be visible to the end user
    [Order(Before = Priority.Default)] //set the priority to be after the default classifiers
    internal sealed class BarocNumber : ClassificationFormatDefinition
    {
        public BarocNumber()
        {
            DisplayName = BarocConstants.ClassificationTypes.BarocNumber;
            ForegroundColor = Colors.HotPink;
        }
    }


}
